Subsumption-Free Bottom-up Evaluation of Logic Programs with Partially Instantiated Data Structures
نویسندگان
چکیده
Most deductive databases impose restrictions on the terms that can be used in them: they require that generated tuples be fully ground, i.e. contain no variables. Without this restriction, query evaluation of general programs needs subsumption tests in order to terminate correctly, and subsumption tests are expensive. We study a class of programs that can handle terms with both variables and function symbols but for which subsumption tests are not necessary. This class is based on the notion of modes, which generalise adornments by not requiring that \bound" be synonymous with \ground". We show how programs in this class may be recognized and how they should be transformed into an executable form, and then prove that bottom-up evaluation of the resulting programs does not require subsumption tests.
منابع مشابه
Magic Sets with Full Sharing
This paper discusses the relationship between tabulation and goal-oriented bottom-up evaluation of logic programs. Some diierences emerge when one tries to identify features of one evaluation method in the other. We show that to obtain the same eeect as tabulation in top-down, one has to perform a careful adornment in programs to be evaluated bottom-up. Furthermore we propose an eecient algorit...
متن کاملTop-down Beats Bottom-up for Constraint Extensions of Datalog
This paper proposes an eecient method for evaluating queries over constraint databases. The method is based on a combination of top-down resolution with memoing and closed form bottom-up evaluation. In this way top-down evaluation terminates for all queries for which the bottom-up evaluation also terminates. The main advantage of the proposed method is the direct use of partially instantiated q...
متن کامل4] F. Bancilhon, a Note on the Performance of Rule Based Systems. in Mcc Technical Report 11 Conclusions and Future Work 10 Discussion of the Suucient Condition 9 a Suucient Condition 8 Functional Dependencies over Gc and M
34 some property is preserved? If not preserved, how do we utilize the properties of the individual programs in evaluating the xpoint of the union? If a program has a property P, what can we say about the program obtained by applying various program transformations such as Magic Sets 5, 20]? As an example of what we look for, consider the composition of two programs in which one acts as a libra...
متن کاملEfficient instance retrieval of subgoals for subsumptive tabled evaluation of logic programs
Tabled evaluation is an implementation technique that solves some problems of traditional Prolog systems in dealing with recursion and redundant computations. Most tabling engines determine if a tabled subgoal will produce or consume answers by using variant checks. A more refined method, named call subsumption, considers that a subgoal A will consume from a subgoal B if A is subsumed by (an in...
متن کاملThe Differential Fixpoint of General Logic Programs
We present a version of the alternating xpoint procedure that is fully incremental. Using ideas of partial evaluation techniques we can compute the well-founded model of logic programs with negation bottom-up without any recomputations. Further extensions of the semantics, e.g. to stable models or disjunctive programs are possible this way. We show how to implement the algorithm eeciently using...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1994